package com.example.whatrubbish.service;

import com.example.whatrubbish.model.Rubbish;
import com.example.whatrubbish.vo.Criteria;
import com.example.whatrubbish.vo.RubbishWithSort;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface RubbishService {
    List<RubbishWithSort> selectByName(RubbishWithSort record);

    Long selectCountBySortId(Criteria criteria);

    List<RubbishWithSort> selectBySortId(Criteria criteria);

    List<Rubbish> selectRecommend();

    List<Map<String, Object>> selectRubbishDistribute();

    int deleteByPrimaryKey(Long id);

    int recoverByPrimaryKey(Long id);

    int updateByPrimaryKey(Rubbish record);

    int deleteByList(List<RubbishWithSort> list);

    int insertSelective(Rubbish record);
}
